package com.javashow.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.javashow.dao.ITestDao;
import com.javashow.pojo.Log;
import com.javashow.pojo.Person;
import com.javashow.service.ITestService;

@Service("testService")
public class TestServiceImpl implements ITestService {
	
	@Autowired
	private ITestDao testDao;
	
	@Override
	public void test() {
		System.out.println("service go!");
		testDao.test();
	}
	
	public void insertPerson(Person person, Log log) {
		testDao.insertPerson(person);
		testDao.insertLog(log);
	}
}


